A US judge has temporarily restricted access to sensitive Treasury data by Mr. Musk's Department of Government Effectiveness, according to market sources.